home *** CD-ROM | disk | FTP | other *** search
- WDCIDEOS.ADD DMA Driver for OS/2 2.1
- ====================================
-
- Driver Name: WDCIDEOS.ADD
-
- Version : 1.01
-
- OS : OS/2 2.1
-
- Date : 10/05/93
-
-
- DESCRIPTION
- ============
-
- WDCIDEOS.ADD is a hard disk driver for use under OS/2 2.1. Its main
- benefit is its ability to transfer data from the hard disk in either
- a Block Mode PIO fashion, EISA type 'B' DMA fashion, or PCI type 'F'
- fashion.
-
- Block Mode PIO is a means of transferring multiple sectors at a time
- between the host and hard disk as opposed to transferring one sector
- at a time. Normally in an AT compatible machine a hardware interrupt
- occurs for each sector transferred to/from the hard disk. Under Block
- Mode PIO one interrupt will occur for a block of sectors. The number
- of sectors that are to be transferred per interrupt is programmable by
- the host and is referred to as the blocking factor. The default blocking
- factor used equals the maximum blocking factor supported that is reported
- by the drive on an Identify Drive command.
-
- Transferring data via Block Mode PIO increases throughput by eliminating
- the inter-sector overhead associated with each sector. This is most
- beneficial when the hard disk is transferring data out of its cache.
- Block Mode data transfers are enabled by default.
-
- This driver also supports EISA type 'B' DMA transfers for drives that
- support this feature and are installed in an EISA system. Data is
- transferred at a rate of 4 MB/sec which is about double that of a
- 6 MHz AT. The standard Read DMA and Write DMA commands as described in
- the CAM ATA specification are used.
-
- Furthermore, type 'F' DMA is supported in PCI based systems. Data is
- transferred at a rate of between 6 and 8 MB/sec using type 'F' DMA.
- The same Read DMA and Write DMA op codes are used, the only difference
- is in the programming of the DMA controller on the motherboard.
-
- Transferring drive data via DMA allows the host CPU to work on other tasks
- while hard disk data transfers are taking place. This increases the
- overall CPU bandwidth which is critical in multi-tasking environments.
-
- This driver only runs Block Mode PIO and DMA on Western Digital drives.
- To use the DMA feature the drive must be installed in an EISA or PCI
- system and the DMARQ and DMACK- signals on the the 40 pin cable must be
- connected to the proper DMA request and acknowledge signals on the EISA
- or ISA bus.
-
- This driver automatically supports Logical Block Addressing (LBA) on
- drives that support this feature.
-
-
- Features:
- ========
- 1. Two Adapters - primary and secondary addresses
- 2. DMA Transfers for WDC drive only
- 3. DMA Channel 3, 5, 6, OR 7
- 4. LBA Mode if drive supports it
- 5. Block Mode PIO for WDC drives by default
- 6. Scatter Gather in DMA Mode
- 7. Auto DMA type detect
-
- Each driver instance can support two IDE adapters / cables. This driver
- assumes the following defaults when no command line switches are used to
- change them:
-
- Defaults:
- 1. Primary adapter at Port 1F0h, IRQ 14, DMA disabled
- 2. Secondary adapter at Port 170H, IRQ 15, DMA disabled
-
- Followings are Defaults for WDC Caviar Drives:
-
- 1. Block Mode PIO
- 2. LBA Mode if drive supports it
-
-
- Installation instructions:
- =========================
-
- Copy wdcide.add in C:\OS2 directory.
-
-
- In Config.sys file:
-
- Replace
-
- BASEDEV=IBM1S506.ADD
-
- with
-
- BASEDEV=WDCIDE.ADD /A:0 /DT:F /DC:6 /A:1 /DT:B /DC:7
-
- In this example, drives conncted on Primary port will
- use DMA Channel 6 & DMA Type F and drives connected on
- Secondary port will use DMA Channel 7 & DMA Type B provided
- the IDE adapters are configured at the proper DMA channels.
- Otherwise system will hang.
-
-
- Command Line Switches:
-
- 1. Adapter number:
-
- /A:0 OR 1 // Adapter 0 or 1
-
-
- 2. DMA channel:
-
- /DC:6 OR 7 OR 5 OR 3 // DMA Channel 3, 5, 6, OR 7
-
- This switch is required to enable DMA transfers. Each adapter
- will require its own DMA channel assignment. When using
- Channel 3, make sure it is set up to run in 16 bit mode.
-
-
- 3. DMA type:
-
- /DT:F OR B // DMA Type F OR B transfers
-
- This switch is optional. When this switch is omitted the
- driver will auto detect the machine type. Type 'B' will be
- used for EISA platforms and type 'F' for PCI/ISA based systems.
-
-
- 4. DMA scatter gather:
-
- /DSGP:400 // DMA Scatter Gather Base port
-
- This driver automatically turns on the Scatter Gather function on
- PCI/EISA systems and defaults to 400H base port. For PCI/ISA
- systems, this function is not enabled automatically. For these
- systems, you will need to use this switch and provide the correct
- base port address to enable the Scatter Gather function. Unless
- you are certain that Scatter Gather function is properly supported
- in the PCI H/W, do not turn on this option as it will either hang
- the system or will currupt the data.
-
-
- 5. DMA scatter gather disable:
-
- /!DSG
-
- Because this driver automatically does Scatter Gather on PCI/EISA
- systems, this switch will allow you to disable the function on these
- systems.
-
-
- 6. Verbose mode:
-
- /V
-
- This displays controller status and drive geometry information
- as well as drive transfer modes during OS/2 initialization at
- up time.
-
-
- 7. Base port address:
-
- /P:120 or /PORT:120
-
- Overrides the default base port address for this adapter.
- Ports assigned in this case would be (120-127) and (326).
- The default port addresses for Adapter 0 is (1F0) and for
- Adapter 1 is (170).
-
-
- 8. Interrupt number: (dec)
-
- /IRQ:11
-
- Overrides the default IRQ number for this adapter. The
- default IRQ address for Adapter 0 is 14 and for Adapter 1
- is 15.
-
-
-
- Notes:
-
- 1. It is very important to note that "/DC" and "/DT" Switch must be
- after "/A" switch as "/A" switch defines which adapter will have
- given DMA channel and DMA type.
-
- 2. Both of the following switches must be used as a group.
-
- For Example:
-
- BASEDEV = WDCIDEOS.ADD /A:1 /DC:6
-
- Driver will assume that No DMA should be used on Primary
- Port and DMA Channel 6 with DMA Type F Should be used for
- secondary Port.